<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>评论列表</title>
    <link rel="stylesheet" href="${ctxPath}/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="${ctxPath}/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="${ctxPath}/css/common.css">
    <link rel="stylesheet" href="${ctxPath}/css/topic.css">
</head>
<body>
<jsp:include page="/WEB-INF/pages/commons/header.jsp"></jsp:include>

<nav class="list">
    <a href="${ctxPath}/index.jsp">首页</a>
    <i>/</i>
    <a href="${ctxPath}/topic/my_list">我的话题</a>
    <i>/</i>
    <b>管理评论</b>
</nav>

<%--当前页面主要内容--%>
<main class="topics-container">
    <form method="post">
    <a href="${ctxPath}/explain/remove_all?id=${id}"><button  type="button" class="btn btn-primary btn-lg">删除所有评论</button></a>
        <c:forEach items="${explainList}" var="e">
        <div class="row topic">
            <span class="explain top">${e.author.nickname}</span>
                <span class="explain body ">${e.content}</span>
             <a href="${ctxPath}/explain/remove_one?id=${e.id}" > <button type="button" class="btn btn-secondary btn-sm">删除</button></a>
        </div>
    </c:forEach>
    </form>
</main>

</body>
</html>


</body>
</html>
